package com.zhangyj.component.tags;

import java.io.IOException;
import java.io.Writer;

import javax.servlet.jsp.JspException;

public class ButtonTag extends BaseTag {

	private static final long serialVersionUID = 1294925219352875277L;

	
	public int doStartTag() throws JspException {
		try {
			Writer writer = this.pageContext.getOut();
			writer.append("<button class=\"button\"");
			this.writerPublic(writer);
			writer.append(">");
		} catch (IOException e) {
			throw new JspException(e);
		} catch (Exception e) {
			throw new JspException(e);
		}
		return EVAL_BODY_INCLUDE;
	}

	
	public int doEndTag() throws JspException {
		try {
			Writer writer = this.pageContext.getOut();
			writer.append("</button>");
		} catch (Exception e) {
			throw new JspException(e);
		}
		return EVAL_PAGE;
	}

}
